package com.mercury.article.service;

import com.mercury.article.entity.HomeArticle;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mercury.article.entity.vo.ArticleInfoVo;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zwn,tyt
 * @since 2021-10-26
 */
public interface HomeArticleService extends IService<HomeArticle> {
    ArrayList<HomeArticle> showArticleList();

    String addArticle(ArticleInfoVo articleInfoVo);

    int updateArticle(ArticleInfoVo articleInfoVo);

    ArticleInfoVo getArticleById(String id);

    List<HomeArticle> getArticleByType(int type);
}
